UploadAndSave.WAS
Procomm Plus 4.x for Windows 95/98/NT


Should I use this script?
-------------------------
UploadAndSave checks a set directory for a file.  If a file exists
the script dials a Connection Directory entry and logs in to the
host system with ID and password.  If a connection is not made,
the script will repeat the connection attempt up to 3 times.  The
script will then upload the file found in the watched directory
to the host system.  The script will move the uploaded file to
another directory and rename the file to the current date
(example: 123098).  UploadAndSave creates a log file of all
transactions.  UploadAndSave is set to automatically exit the
script and Procomm Plus at the end of the process.


Customization
---------------------------------------
Using the Procomm Plus ASPECT Editor:

* To set the directory to check for files present edit the MACRO
definition (fWATCHDIR) on line 30.
* To set the backup directory to check for files edit the MACRO
definition (fBACKUPDIR) on line 31.
* To set the path and filename for the log file edit the MACRO
definition (fLOGFILE) on line 32.
* To set the Connection Directory entry to dial edit the MACRO
definition (szENTRY) on line 33.  Note that the script assumes the
current Connection Directory will be used.
* To set the logon ID to the host edit the MACRO definition
(szLOGIN) on line 34.
* To set the password to the host edit the MACRO definition
(szPASSWORD) on line 35.
* If you don't want to exit Procomm Plus automatically at the end
of the process, remove or remark out (using a semi-colon) the
command "pwexit" on line 71.
* Line 124 contains a line that has a WAITFOR command that waits
for the host to send to the client which file transfer protocol
it is using, and this line defaults to "ZMODEM".  Not all host
systems send this information so the line is remarked out with a
semicolon (;). If you want to use this line simply remove the
semicolon and enter the string that will be sent from the host
to tell the client that a file transfer is about to start.  Most
systems will not require this line.
* To set the file transfer protocol used to upload the file
edit (sendfile PROTOCOL) on line 126.


How do I install UploadAndSave.WAX?
---------------------------------------
Copy UploadAndSave.WAS to your ASPECT directory and compile it by
selecting Tools | Scripts | Compile/Edit from the Procomm Plus
Menu bar.


How do I run UploadAndSave.WAX?
---------------------------------------
From the Action Bar:

1)  Click on the Script File drop down menu.
2)  Select UploadAndSave.

From the Menu Bar:

1)  Click on Tools | Scripts.
2)  Click on Run.
3)  Select UploadAndSave.WAX.
4)  Click on Open.

NOTE:  If UploadAndSave.WAX does not appear in the Script File
       drop down list, you might have a different default ASPECT
       path.  To change the path, go to Options | Data Options |
       Paths and change the path to
       PROGRAM FILES\PROCOMM PLUS\ASPECT directory.

